//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_client_f.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Position: '',
			Client_no: '',
			Client_name: '',
			Scale: '',
			Credit_amt: '',
			Client_type: '',
			Client_flag: '',
			Client_man: '',
			Client_tel: '',
			Province: '',
			City: '',
			District: '',
			Client_addr: '',
			Remark: '',
			Credit_quota: '',
			Display_flag: '',
			Character: '',
		},
		editFormOptions: [
			{ title: '客户编码', field: 'Client_no', type: 'text' },
			{ title: '客户名称', required: true, field: 'Client_name', type: 'text' },
			{ key: '客户规模', data: [], title: '客户规模', required: true, field: 'Scale', type: 'select' },
			{ key: '信用等级', data: [], title: '信誉等级', required: true, field: 'Credit_amt', type: 'select' },
			{ type: 'group' },
			{ title: '联系人', required: true, field: 'Client_man', type: 'text' },
			{ title: '联系电话', required: true, field: 'Client_tel', type: 'text' },
			{ title: '联系人职位', field: 'Position', type: 'text' },
			{ type: 'group' },
			{ key: '省', data: [], title: '省',required: true, field: 'Province', type: 'select' },
			{ key: '省', data: [], title: '市', required: true,field: 'City', type: 'select' },
			{ key: '省', data: [], title: '区县',required: true, field: 'District', type: 'select' },
			{ title: '地址', field: 'Client_addr', type: 'textarea' },
			{ key: '客户性质', data: [], title: '客户性质', required: true, field: 'Character', type: 'select' ,hidden:true},
			{ key: '客户类型', data: [], title: '客户类型', required: true, field: 'Client_type', type: 'select',hidden:true },
			{ key: '客户标志', data: [], title: '客户标志', required: true, field: 'Client_flag', type: 'select' ,hidden:true},
			{ title: '信誉额度', required: true, field: 'Credit_quota', type: 'number' ,hidden:true},
			{ key: '往来标志', data: [], title: '往来标志', required: true, field: 'Display_flag', type: 'select' ,hidden:true},
			{ title: '备注', field: 'Remark', type: 'textarea' },
		],
		searchFormFields: { Client_no: '', Client_name: '', Scale: '', Credit_amt: '', Client_man: '', Position: '', Credit_quota: '', Display_flag: '' },
		searchFormOptions: [
			{ key: '客户规模', data: [], title: '客户规模', field: 'Scale', type: 'select' },
			{ key: '信用等级', data: [], title: '信誉等级', field: 'Credit_amt', type: 'select' },
			{ title: '联系人职位', field: 'Position', type: 'text' },
			{ title: '信誉额度', field: 'Credit_quota', type: 'decimal' },
			{ key: '往来标志', data: [], title: '往来标志', field: 'Display_flag', type: 'number' },
			{ type: 'group' },
			{ title: '客户编码', field: 'Client_no', type: 'like' },
			{ title: '客户名称', field: 'Client_name', type: 'like' },
			{ title: '联系人', field: 'Client_man', type: 'like' }
		],
		columns: [
			{ field: 'Client_no', title: '客户编码', type: 'string' },
			{ field: 'Client_name', title: '客户名称', type: 'string', link: true },
			{ field: 'Client_type', title: '客户类型', type: 'int', bind: { key: '客户类型', data: [] } },
			{ field: 'Client_flag', title: '客户标志', type: 'string', bind: { key: '客户标志', data: [] } },
			{ field: 'Character', title: '客户性质', type: 'string', bind: { key: '客户性质', data: [] } },
			{ field: 'Scale', title: '客户规模', type: 'int', bind: { key: '客户规模', data: [] } },
			{ field: 'Credit_amt', title: '信誉等级', type: 'int', bind: { key: '信用等级', data: [] } },
			{ field: 'Client_man', title: '联系人', type: 'string' },
			{ field: 'Client_tel', title: '联系电话', type: 'string' },
			{ field: 'Position', title: '联系人职位', type: 'string' },
			{ field: 'Province', title: '省', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'City', title: '市', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'District', title: '区县', type: 'string', bind: { key: '省', data: [] } },
			{ field: 'Client_addr', title: '地址', type: 'string' },
			{ field: 'Remark', title: '备注', type: 'string' },
		],
		table: {
			key: 'Client_id',
			footer: 'Foots',
			cnName: '销售客户',
			name: 'q_client_f',
			url: '/q_client_f/',
			sortName: 'Client_no'
		}
	};
}
